//package cn.com.greatwall.system.modules.security.security;
//
//import org.springframework.security.config.annotation.SecurityConfigurerAdapter;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.web.DefaultSecurityFilterChain;
//import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
//
//import cn.com.greatwall.system.modules.security.config.bean.SecurityProperties;
//import cn.com.greatwall.system.modules.security.service.OnlineUserService;
//import cn.com.greatwall.system.modules.security.service.UserCacheClean;
//import lombok.RequiredArgsConstructor;
//
///**
// * @Author herw
// * @Time 2020-06-21 9:52:39 PM
// * @Version 1.0
// * @Description:
// */
//@RequiredArgsConstructor
//public class TokenConfigurer extends SecurityConfigurerAdapter<DefaultSecurityFilterChain, HttpSecurity> {
//    private final TokenProvider tokenProvider;
//    private final SecurityProperties properties;
//    private final OnlineUserService onlineUserService;
//    private final UserCacheClean userCacheClean;
//
//    @Override
//    public void configure(HttpSecurity http) {
//        TokenFilter customFilter = new TokenFilter(tokenProvider, properties, onlineUserService, userCacheClean);
//        http.addFilterBefore(customFilter, UsernamePasswordAuthenticationFilter.class);
//    }
//}
